$(document).ready(function() {
    /*--------------------------------------------
    Camera Slider
    --------------------------------------------*/
    if ($("section").hasClass('slider')) {
        $("#camera_wrap_1").camera({
            alignment: 'center',
            autoAdvance: true,
            mobileAutoAdvance: true,
            barDirection: 'leftToRight',
            barPosition: 'bottom',
            loader: 'none',
            opacityOnGrid: false,
            cols: 12,
            height: '50%',
            playPause: false,
            pagination: false,
            time: 2000,
            imagePath: 'plugins/camera/images/'
        });
    }
});


$(window).scroll(function() {
    var top = $(document).scrollTop()
    if (top > 6) {
        $(".main-header").addClass("changeNav")
    } else {
        $(".main-header").removeClass("changeNav")
    }

})